package com.pandora.credit.service;

import com.pandora.credit.dto.request.HistoriesRequest;
import com.pandora.credit.entity.History;

import java.util.List;

/**
 * @author developer
 */
public interface HistoryService {

    /**
     * selectByUpdateTime
     * @param custId custId
     * @param type type
     * @param updateTime updateTime
     * @param pageLength pageLength
     * @return HistoryList
     */
    List<History> selectByUpdateTime(long custId, int type, String updateTime, int pageLength);

    /**
     * selectByCusIdTypeDoc
     * @param cusId cusId
     * @param type type
     * @param docId docId
     * @return History
     */
    History selectByCusIdTypeDoc(long cusId, int type, long docId);

    /**
     * save
     * @param history history
     */
    void save(History history);

    /**
     * update
     * @param history history
     */
    void update(History history);

    /**
     * doPostHistories
     * @param authorizationToken authorizationToken
     * @param req req
     * @return Object
     */
    Object doPostHistories(String authorizationToken, HistoriesRequest req);


}
